//样式和icon
import { IconStyle } from './assets/iconfont/iconfont'
import { GlobalStyle } from './style'
//路由
import { renderRoutes } from 'react-router-config'//读取路由转化为Route标签
import routes from './routes/index.js'
import { HashRouter } from 'react-router-dom'
//注入store
import { Provider } from 'react-redux'
import store from './store/index' 

function App() {
  return (
    <Provider store={store}>
      <HashRouter>
        <GlobalStyle></GlobalStyle>
        <IconStyle></IconStyle>
        { renderRoutes(routes) }
      </HashRouter>
    </Provider>
  );
}

export default App;
